package bjut.zrpc.core.optimization.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: zhuzhiming
 * @Date: 2022/6/24 1:19
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ZRpcRequestMessage implements Serializable {

    private String requestId;

    private String interfaceName;

    private String methodName;

    private Object[] parameters;

    private Class<?>[] parametersType;

    private String group;

    private String version;

    public String getServiceInfo() {
        return interfaceName + "." + group + "." + version;
    }


}
